# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='TbFunction',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
                ('name', models.CharField(max_length=50, unique=True)),
                ('parent_id', models.IntegerField(blank=True, null=True)),
                ('code', models.CharField(max_length=50, blank=True, null=True)),
                ('parent_code', models.CharField(max_length=500, blank=True, null=True)),
                ('full_code', models.CharField(max_length=500)),
                ('is_active', models.IntegerField()),
                ('create_date', models.DateTimeField()),
                ('desc', models.CharField(max_length=500)),
                ('desc2', models.CharField(max_length=500, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_function',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbMenu',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
                ('project_name', models.CharField(max_length=255, blank=True, null=True)),
                ('menujson', models.TextField(blank=True, db_column='menuJson', null=True)),
                ('version', models.CharField(max_length=255, blank=True, null=True)),
                ('enabled', models.IntegerField(blank=True, null=True)),
                ('last_edit_yime', models.DateTimeField(null=True, auto_now=True)),
                ('desc1', models.CharField(max_length=255, blank=True, null=True)),
                ('desc2', models.CharField(max_length=255, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_menu',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbMymenu',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
                ('my_menu_json', models.TextField(blank=True, null=True)),
                ('system_menu_json', models.TextField(blank=True, null=True)),
                ('timeout', models.CharField(max_length=255, blank=True, null=True)),
                ('last_edit_time', models.DateTimeField(null=True, auto_now=True)),
                ('mymenu_status', models.CharField(max_length=50, blank=True, null=True)),
                ('desc1', models.CharField(max_length=255, blank=True, null=True)),
                ('desc2', models.CharField(max_length=255, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_mymenu',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbProject',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
                ('pid', models.IntegerField(unique=True, db_column='PID')),
                ('short_name', models.CharField(max_length=100)),
                ('full_name', models.CharField(max_length=500)),
                ('desc', models.CharField(max_length=1000)),
                ('opinion', models.CharField(max_length=500, blank=True, null=True)),
                ('http_address', models.CharField(max_length=200, blank=True, null=True)),
                ('server_ip', models.CharField(max_length=100, blank=True, null=True)),
                ('create_date', models.DateTimeField()),
                ('have_mobile', models.IntegerField()),
            ],
            options={
                'db_table': 'tb_project',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbProjectRole',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
                ('role_name', models.CharField(max_length=100)),
                ('role_code', models.CharField(max_length=50, blank=True, null=True)),
                ('role_desc', models.CharField(max_length=500)),
                ('role_desc2', models.CharField(max_length=500, blank=True, null=True)),
                ('create_date', models.DateTimeField()),
                ('is_active', models.IntegerField()),
            ],
            options={
                'db_table': 'tb_project_role',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbRoleFunctionMap',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
            ],
            options={
                'db_table': 'tb_role_function_map',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbSite',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
                ('site_code', models.CharField(max_length=50)),
                ('site_name', models.CharField(max_length=50)),
                ('area_code', models.CharField(max_length=10, blank=True, null=True)),
                ('create_date', models.DateTimeField()),
            ],
            options={
                'db_table': 'tb_site',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbStatus',
            fields=[
                ('status_code', models.IntegerField(primary_key=True, serialize=False)),
                ('status_name', models.CharField(max_length=50)),
                ('status_desc', models.CharField(max_length=500, blank=True, null=True)),
                ('status_type', models.CharField(max_length=100, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_status',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbUser',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
                ('password', models.CharField(max_length=128)),
                ('last_login', models.DateTimeField(blank=True, null=True)),
                ('is_superuser', models.IntegerField()),
                ('username', models.CharField(max_length=30, unique=True)),
                ('first_name', models.CharField(max_length=30)),
                ('last_name', models.CharField(max_length=30)),
                ('email', models.CharField(max_length=254)),
                ('is_staff', models.IntegerField()),
                ('is_active', models.IntegerField()),
                ('date_joined', models.DateTimeField()),
                ('nfc_id', models.CharField(max_length=100, blank=True, db_column='NFC_id', null=True)),
                ('ext', models.CharField(max_length=50, blank=True, null=True)),
                ('short_number', models.CharField(max_length=50, blank=True, null=True)),
                ('mobile_phone', models.CharField(max_length=50, blank=True, null=True)),
                ('head', models.CharField(max_length=100, blank=True, null=True)),
                ('sign', models.CharField(max_length=100, blank=True, null=True)),
                ('org_id', models.IntegerField()),
            ],
            options={
                'db_table': 'tb_user',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TbUserRoleMap',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
            ],
            options={
                'db_table': 'tb_user_role_map',
                'managed': False,
            },
        ),
    ]
